package com.example.singlelinkedlist.stack;

import java.util.Stack;

/**
 * 测试栈类
 */
public class TestStack {
    public static void main(String[] args) {
        Stack<String> stack = new Stack<String>();
        stack.push("孙伟豪1");
        stack.push("孙伟豪2");
        stack.push("孙伟豪3");
        while (stack.size() > 0) {
            System.out.println(stack.pop());
        }
    }
}
